﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace CarRent
{
    public partial class SiteMaster : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
            }
            NavigationMenu.Items.Add(new MenuItem { Text = "Home", NavigateUrl = "/" });
            NavigationMenu.Items.Add(new MenuItem { Text = "Booking", NavigateUrl = "~/Pages/Booking.aspx" });
            if (HttpContext.Current.User.IsInRole(System.Configuration.ConfigurationManager.AppSettings["Admin"]))
            {
                NavigationMenu.Items.Add(new MenuItem { Text = "Approval", NavigateUrl = "~/Pages/Approval.aspx" });
            }
            NavigationMenu.Items.Add(new MenuItem { Text = "Calendar", NavigateUrl = "~/Pages/Calendar.aspx" });
        }
    }
}
